package org.zh.sh.sv.proxy;

import org.zh.sh.sv.AppUrlSV;

import java.util.Map;

import static org.zh.sh.config.GlobalStatic.removeLocalConn;
import static org.zh.sh.config.GlobalStatic.setLocalConn;

public class ProxyAppUrlSV extends AppUrlSV {
    @Override
    public Map<String, Object> insert(Map<String, Object> appUrl) {
        int methodHashCode = -1238544544;
        setLocalConn(methodHashCode);
        Map<String, Object> result = super.insert(appUrl);
        removeLocalConn(methodHashCode);
        return result;
    }

    @Override
    public int updateById(Map<String, Object> appUrl) {
        int methodHashCode = -519441950;
        setLocalConn(methodHashCode);
        int result = super.updateById(appUrl);
        removeLocalConn(methodHashCode);
        return result;
    }

    @Override
    public void insertVoid(Map<String, Object> appUrl) {
        int methodHashCode = 919211572;
        setLocalConn(methodHashCode);
        super.insertVoid(appUrl);
        removeLocalConn(methodHashCode);
    }

    @Override
    public int deleteById(Long id) {
        int methodHashCode = 1719141828;
        setLocalConn(methodHashCode);
        int result = super.deleteById(id);
        removeLocalConn(methodHashCode);
        return result;
    }

    @Override
    public Map<String, Object> queryById(Long id) {
        int methodHashCode = -1692874397;
        setLocalConn(methodHashCode);
        Map<String, Object> result = super.queryById(id);
        removeLocalConn(methodHashCode);
        return result;
    }
}